home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 9044 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: rcp6.elan.af.mil!rscernix!danpop
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Schildt <- Advanced Books
  5. Date: 7 Mar 96 22:45:06 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <danpop.826238706@rscernix>
  8. References: <8BA8405.02C70020DE.uuout@sourcebbs.com> <danpop.825687663@rscernix> <4he6hb$ahn@solutions.solon.com> <danpop.826121528@rscernix> <4hleu9$5ah@solutions.solon.com>
  9. NNTP-Posting-Host: ues5.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11.  
  12. In <4hleu9$5ah@solutions.solon.com> seebs@solutions.solon.com (Peter Seebach) writes:
  13.  
  14. >In article <danpop.826121528@rscernix>, Dan Pop <danpop@mail.cern.ch> wrote:
  15. >>"%f" might be a typo (yet it was preserved between editions, so maybe
  16. >>it was not a typo :-) but the missing cast _cannot_ be a typo.
  17. >
  18. >Well, maybe a very *large* typo.
  19. >
  20. >>There is nothing subtle here, for someone who knows C (which rules Schildt
  21. >>out :-)  size_t is _guaranteed_ not to be defined as int, so using "%d"
  22. >>is plain idiotic.  I could understand a "%u", and qualify the author as
  23. >>mildly stupid :-)
  24. >
  25. >I consider a bug subtle if the code is likely to work correctly most of the
  26. >time.
  27.  
  28. So, you consider "void main" and calling malloc without a declaration in
  29. scope subtle bugs :-)
  30.  
  31. Dan
  32. --
  33. Dan Pop
  34. CERN, CN Division
  35. Email: danpop@mail.cern.ch 
  36. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  37.